package com.qinglei.recoup.hmp.controller;

import com.qinglei.recoup.common.domain.CommonRes;
import com.qinglei.recoup.hmp.domain.HmpUserTag;
import com.qinglei.recoup.hmp.service.HmpUserTagService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("hmp/tag")
public class HmpUserTagController {

    @Autowired
    private HmpUserTagService hmpUserTagService;

    @ApiOperation(value = "获取使用者标签列表接口")
    @GetMapping("/getTag")
    public CommonRes getTag() {
        List<HmpUserTag> list = hmpUserTagService.list();

        return CommonRes.ok(list );
    }

}
